package com.xt.back.constant;


/**
 * @author leotong
 */
public enum APIStatusCodeEnum {
    /**
     * 操作成功
     */
    SUCCESS(200, "系统操作成功"),
    /**
     * 操作失败
     */
    ERROR(500, "系统操作失败"),
    /**
     *  权限不足
     */
    FORBIDDEN(403, "当前登录的用户没有权限执行"),
    /**
     * 传递参数有误
     */
    PARAMETER_ERROR(400, "传递参数有误~");


    private final int code;
    private final String msg;

    private APIStatusCodeEnum(int code, String msg){
        this.code=code;
        this.msg=msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
